package cn.lyp.feignclient;

import cn.lyp.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-server",fallbackFactory = UserFeignFallBackFactory.class)
public interface IUserFeignClient {

    @GetMapping("/user/{id}")
    User get(@PathVariable("id") Long id);



}
